const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: {
  },
  devServer: {
    open: false,
    host: '127.0.0.1',
    port: 7899,
    proxy: {
      '/api': {
        target: "http://localhost:8888/",
        changeOrigin: true,
        // pathRewrite: {  //淦
        //   '^/api': '',
        // },
        rewrite: (path) => path.replace(/^\/api/, '')
      },
    },
  },
})
